package com.konsung.ksdc.manager.shop;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.RelativeLayout;
import android.widget.TextView;

import com.konsung.ksdc.R;
import com.konsung.ksdc.manager.appmain.BaseActivity;

import butterknife.Bind;
import butterknife.ButterKnife;

/**
 * 我的积分页面
 * Created by DJH on 2017/5/4 0004.
 */
public class MyIntegralActivity extends BaseActivity implements View.OnClickListener {
    @Bind(R.id.rl_back)
    RelativeLayout rlBack;
    @Bind(R.id.tab_tv_title)
    TextView tvTitle;
    @Bind(R.id.tv_see_all)
    TextView tvSeeAll;
    @Bind(R.id.tv_reload)
    TextView tvReload;

    @Override
    protected String activityDesc() {
        return getString(R.string.my_integral);
    }

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_my_integral);
        ButterKnife.bind(this);
        initEvent();
        initData();
        initView();
    }

    /**
     * 初始化积分页面事件
     */
    private void initEvent() {
        rlBack.setOnClickListener(this);
        tvSeeAll.setOnClickListener(this);
        tvReload.setOnClickListener(this);
    }

    /**
     * 初始化积分页面
     */
    private void initView() {
        tvTitle.setText(R.string.my_integral);
    }

    /**
     * 获取积分数据
     */
    private void initData() {
    }

    @Override
    public void onClick(View v) {
        switch (v.getId()) {
            case R.id.rl_back:
                finish();
                break;
            case R.id.tv_see_all:
                Intent intent = new Intent(this, IntegralDetailActivity.class);
                startActivity(intent);
                break;
            case R.id.tv_reload:
                break;
            default:
                break;
        }
    }
}
